###装饰器-无参

def my_decorator(func):
    def wrapper():
        print("这是装饰后具有的新输出")
        func()
    return wrapper

@my_decorator
def hello():
    print("你好，装饰器")

@my_decorator
def hello2():
    print("你好，装饰器2")

if __name__ == '__main__':
    hello2()